Chisheng Li


In [1]:
import os, sys, math
from text_util import *
from collections import Counter, defaultdict

import nltk
stemmer = nltk.stem.porter.PorterStemmer()

To calculate the normalized Term Frequency – Inverse Document Frequency for every president


In [2]:
import re
refs_pat = '^[a-z][a-z\'-]+[a-z]$'
refs_prog = re.compile(refs_pat)
NAMEWORDS = set()

In [3]:
# l2norm() function to divide a person's TF value by the l2norm of the term vector 
def l2norm(vec):
    return float(math.sqrt(sum(map(lambda (term, c): c**2, vec))))

In [4]:
# get_terms() to perform all of the data cleaning
def get_terms(s):
    # Casing and short words
    # We can deal with these by lower-casing all of the terms and filtering out the short terms.
    s = s.lower()
    lines = filter(lambda line: not line.strip().startswith(">"), s.split('\n'))
    arr = '\n'.join(lines).split()
    terms = []
    for term in arr:
        if re.match(refs_pat, term) != None:
            terms.append(term)
    terms = map(lambda term: term.replace("'s",'').replace("'", '').replace(".", "").replace(",", ""), terms)
    terms = filter(lambda term: len(term) > 3, terms)
    # Stop Words
    # The text_util module defines a variable STOPWORDS that contains a list of common english 
    # stop words in lower case. We can filter out terms that are found in in this list.
    from text_util import STOPWORDS
    terms = filter(lambda term: term not in STOPWORDS, terms)
    # Remove names from the terms
    terms = filter(lambda term: term not in NAMEWORDS, terms)
    terms = filter(stemmer.stem, terms)
    return terms

In [5]:
# To calculate term frequency
folder_tf = defaultdict(Counter)

for e in TextWalker('sotu'):
    terms_in_text = get_terms(e['text'])
    folder_tf[e['folder']].update(terms_in_text)

In [6]:
# To calculate inverse document frequency
terms_per_folder = defaultdict(set)
ntexts = 0
for e in TextWalker('sotu'):
    terms_in_text = get_terms(e['text'])
    # this collects all of the terms in each folder
    terms_per_folder[e['folder']].update(terms_in_text)

In [7]:
# Each iteration retrieves the terms for a given folder, and adds them all to the counter.
allterms = Counter()
for folder, terms in terms_per_folder.iteritems():
    # this will increment the counter value for each term in `terms`
    allterms.update(terms)

In [8]:
# To normalize weights
for key in folder_tf.keys():
    tfs = folder_tf[key]
    normfactor = float(l2norm(tfs.iteritems()))
    for term in tfs.keys():
        tfs[term] /= normfactor

In [9]:
idfs = {}
# The number of keys should be the number of folders 
nfolders = len(terms_per_folder)   
for term, count in allterms.iteritems():
    idfs[term] = math.log( nfolders / (1.0 + count) )

In [10]:
# Calculate tf-idf for each folder
# key is folder name, value is a list of (term, tfidf score) pairs
tfidfs = {}
for folder, tfs in folder_tf.items():
    tfidfs[folder] = map(lambda (k, v): (k, v*idfs[k]), tfs.items())
    pass

In [11]:
# Print the top terms
f = open(r"TFIDF.txt", "w")
for folder, terms in tfidfs.items():
    print folder
    f.write(folder + '\n')
    sorted_by_count_top20 = sorted(terms, key=lambda (k, v):v, reverse=True)[:20]
    for pair in sorted_by_count_top20:
        print '\t', pair
        f.write('\t' + str(pair) + '\n')
f.close()


James Madison 4
	('british', 0.07416591794975048)
	('madison', 0.05625201403667222)
	('militia', 0.05510277214520098)
	('edicts', 0.04614189914505176)
	('savages', 0.04148516050423836)
	('enemy', 0.039558749797707744)
	('captain', 0.03813838022298889)
	('proofs', 0.03813838022298889)
	('danish', 0.035157508772920135)
	('revocation', 0.035157508772920135)
	('milan', 0.03300393629137833)
	('seminary', 0.03300393629137833)
	('orders', 0.032925600486767626)
	('regulars', 0.0323724090184379)
	('major-general', 0.0323724090184379)
	('detroit', 0.030761266096701174)
	('james', 0.02976404945306569)
	('lake', 0.028663207463346975)
	('detachments', 0.02812600701833611)
	('tribes', 0.026245092861105712)
George H.W. Bush 41
	('budget', 0.11140573155794081)
	('kids', 0.08677762873729751)
	('help', 0.08226387754137214)
	('tell', 0.07432912157693332)
	('billion', 0.06828093224518954)
	('saddam', 0.06391746679567961)
	('economic', 0.060019455684755044)
	('environmental', 0.05682299342475569)
	('soviet', 0.054749921133158526)
	('parents', 0.05201323053518133)
	('jobs', 0.04977265557559866)
	('tough', 0.04885292916612805)
	('freeze', 0.04870542293550488)
	('program', 0.04705888439289403)
	('spending', 0.04507405405264552)
	('iraq', 0.04407975253372176)
	('bush', 0.042611644530453074)
	('yeltsin', 0.04137964819291265)
	('child', 0.041013642480298776)
	('nuclear', 0.039729519025373826)
Franklin Pierce 14
	('objects', 0.027585035854258404)
	('mosquito', 0.026169144519516734)
	('sectional', 0.025691857512242147)
	('denmark', 0.02445972037030945)
	('punta', 0.024090103136076065)
	('kansas', 0.022871188721398466)
	('cyane', 0.022233047748317754)
	('pierce', 0.022233047748317754)
	('greytown', 0.022233047748317754)
	('british', 0.020885649350379138)
	('territory', 0.019812593233306662)
	('territories', 0.019411691897441095)
	('pretensions', 0.01833983194277377)
	('proposition', 0.017995677558049972)
	('confederation', 0.017121804259216618)
	('compact', 0.01701565318503184)
	('koszta', 0.016674785811238314)
	('insolence', 0.016674785811238314)
	('relation', 0.016585662719418727)
	('contraband', 0.01635571532469796)
John Quincy Adams 6
	('quincy', 0.049855883396412226)
	('adams', 0.045124601632223316)
	('intercourse', 0.03981450386225392)
	('colonies', 0.037361587173189825)
	('conformably', 0.03384345122416749)
	('discriminating', 0.033559856604505736)
	('objects', 0.03263000378566973)
	('greeks', 0.032276293456452484)
	('enjoyments', 0.03115992712275764)
	('scarcely', 0.029134485416200513)
	('persevering', 0.02656215943855447)
	('chesapeake', 0.02578678934690451)
	('interdiction', 0.024927941698206113)
	('yearly', 0.0248650250112241)
	('purchasers', 0.02449638188526166)
	('unpropitious', 0.024207220092339367)
	('enumerations', 0.024207220092339367)
	('draw-backs', 0.024207220092339367)
	('surveys', 0.023882143214300718)
	('duties', 0.023521876351930263)
Chester A. Arthur 21
	('five-twenties', 0.09936991387087023)
	('consols', 0.08613597203121688)
	('consular', 0.046027002060191294)
	('iglesias', 0.044164406164831214)
	('chester', 0.044164406164831214)
	('kongo', 0.04263685603716356)
	('sinking', 0.039360630513040736)
	('intercourse', 0.038455846250556175)
	('honorary', 0.03828265423609639)
	('chile', 0.03733962474061127)
	('courteously', 0.0331233046236234)
	('ten-forties', 0.0331233046236234)
	('silver', 0.03280052542753395)
	('premises', 0.032489493248669434)
	('switzerland', 0.03087252316007969)
	('arthur', 0.03087252316007969)
	('lately', 0.03044208836548236)
	('miscellaneous', 0.029871699792489013)
	('repayment', 0.028227732900996026)
	('caracas', 0.028227732900996026)
Harry S. Truman 33
	('economic', 0.10492052719311197)
	('program', 0.09818131468376945)
	('atomic', 0.09012648617404401)
	('billion', 0.0874741732452193)
	('soviet', 0.0787477538108244)
	('reconversion', 0.07721957033386526)
	('million', 0.06534924764689024)
	('communist', 0.06330205929838627)
	('housing', 0.05793061844615777)
	('dollars', 0.05458679711649403)
	('democratic', 0.05172908367609651)
	('authorizations', 0.05163235753620049)
	('veterans', 0.05088316400084038)
	('wartime', 0.04939694412192062)
	('demobilization', 0.04364584410174993)
	('budget', 0.04111286142525307)
	('collective', 0.04006335089170654)
	('lend-lease', 0.03889498144674932)
	('programs', 0.036903679133780135)
	('peacetime', 0.03491713148136514)
James Polk 11
	('texas', 0.10144080768134942)
	('mexico', 0.10089377605374623)
	('mexican', 0.07104583136151184)
	('paredes', 0.04571619944767029)
	('annexation', 0.04295784240237344)
	('steamers', 0.04031002485369515)
	('nueces', 0.035919870994598084)
	('oregon', 0.03521886564261553)
	('texan', 0.0271324517559225)
	('anna', 0.02612354254152588)
	('polk', 0.022644446815534628)
	('california', 0.021341903930776993)
	('redress', 0.021341903930776993)
	('insults', 0.019813890963592797)
	('protective', 0.019667095366792234)
	('wine', 0.01959265690614441)
	('herrera', 0.01959265690614441)
	('cession', 0.0188113449317244)
	('santa', 0.01847062671433995)
	('grande', 0.018174471785619532)
Lyndon B. Johnson 36
	('vietnam', 0.1811391926340426)
	('help', 0.08841204954930205)
	('billion', 0.08706583158503552)
	('programs', 0.07576179377867778)
	('budget', 0.06644497673594815)
	('soviet', 0.05394585105363435)
	('program', 0.05357620098226123)
	('communist', 0.0497420182442892)
	('percent', 0.0475840476585858)
	('lyndon', 0.045736691994146476)
	('vietnamese', 0.045736691994146476)
	('today', 0.04160540041830862)
	('americans', 0.04065261764380179)
	('poverty', 0.0391871347131092)
	('goal', 0.03902621469860326)
	('million', 0.036373394733927915)
	('nuclear', 0.03618541703557112)
	('jobs', 0.034906138917057516)
	('basic', 0.03396218341802797)
	('johnson', 0.033527948383437194)
George Washington 1
	('gentlemen', 0.10536619003301763)
	('violences', 0.05633779797479983)
	('persuasion', 0.04922770744028257)
	('forbear', 0.03938216595222606)
	('indians', 0.037514933480847105)
	('burthens', 0.03600837080266904)
	('militia', 0.03527271130889377)
	('impressions', 0.03315586764809217)
	('pleasing', 0.03255115300671181)
	('recess', 0.030684917022877088)
	('mild', 0.029536624464169544)
	('agreeably', 0.029536624464169544)
	('fellow-citizens', 0.029356898106756908)
	('objects', 0.0284775970895523)
	('florins', 0.028168898987399917)
	('lament', 0.028168898987399917)
	('consolations', 0.028168898987399917)
	('tenderness', 0.028168898987399917)
	('imbittered', 0.028168898987399917)
	('george', 0.027458570000606634)
Calvin Coolidge 30
	('economic', 0.044445830895211764)
	('method', 0.040251326876878636)
	('marketing', 0.03857221019269287)
	('reclamation', 0.037513983536250496)
	('veterans', 0.035475663597613255)
	('muscle', 0.03272545470631662)
	('flood', 0.032458893743480856)
	('negro', 0.03079330768331919)
	('cooperative', 0.030596872539946054)
	('shoals', 0.02840623302868398)
	('nitrates', 0.0280890602834969)
	('coolidge', 0.0280890602834969)
	('calvin', 0.0280890602834969)
	('exceedingly', 0.02678192506067639)
	('league', 0.02648045896676506)
	('interstate', 0.025339759712580897)
	('farmer', 0.024754632959201908)
	('wage', 0.023863380596542024)
	('consolidation', 0.023748422346894033)
	('nitrate', 0.023407550236247413)
Warren Harding 29
	('insistent', 0.09963014467137114)
	('railway', 0.09632939731326183)
	('motor', 0.07116438905097938)
	('freight', 0.0670243647126482)
	('nontaxable', 0.06108214024923401)
	('reclamation', 0.05758409473820474)
	('pre-war', 0.056931511240783515)
	('viewpoint', 0.05294730889021361)
	('hindering', 0.05294730889021361)
	('disordered', 0.05205429710497112)
	('readjustment', 0.05142997398117989)
	('illiteracy', 0.04793067130932124)
	('problems', 0.047277194929078815)
	('centum', 0.047175554187748735)
	('menace', 0.04517889148448246)
	('unmindful', 0.04479973797052735)
	('mindful', 0.0443586241683513)
	('aloofness', 0.04072142683282267)
	('helpfulness', 0.04072142683282267)
	('royalties', 0.04072142683282267)
James Buchanan 15
	('kansas', 0.08039362307198157)
	('slavery', 0.045143559597397145)
	('slaves', 0.039542023862263034)
	('honduras', 0.03547118550765024)
	('bulwer', 0.03473356383862063)
	('topeka', 0.03039186835879305)
	('lecompton', 0.03039186835879305)
	('amistad', 0.030107797891781668)
	('clayton', 0.030107797891781668)
	('mormons', 0.030107797891781668)
	('slave', 0.027509377292264058)
	('utah', 0.02674852714760461)
	('miramon', 0.026050172878965473)
	('african', 0.024506503781444165)
	('fugitive-slave', 0.02258084841883625)
	('granada', 0.021967791034590577)
	('war-making', 0.021708477399137893)
	('territory', 0.021322633835402602)
	('valorem', 0.019771011931131517)
	('redress', 0.01934723982745592)
Zachary Taylor 12
	('california', 0.07331346946229668)
	('isthmus', 0.05936758600813989)
	('reconnaissance', 0.04235509173920425)
	('hidalgo', 0.04235509173920425)
	('oregon', 0.042248189930731164)
	('granada', 0.041621828010914505)
	('german', 0.04009333372674373)
	('rome', 0.03833562884907991)
	('daffaires', 0.03709286702606656)
	('portugal', 0.036199835696134594)
	('post-office', 0.03572096413342636)
	('respectfully', 0.03572096413342636)
	('guadalupe', 0.03505148853990696)
	('cautiously', 0.03505148853990696)
	('mineral', 0.03476781493141117)
	('mexico', 0.03286621439683783)
	('register', 0.03227478747279596)
	('light-houses', 0.03227478747279596)
	('empire', 0.03183476001825215)
	('advices', 0.02986949960245492)
Ronald Reagan 40
	('spending', 0.0910499877069903)
	('economic', 0.09092987335731652)
	('budget', 0.08935942468122435)
	('soviet', 0.08162988255981671)
	('programs', 0.08021070345615812)
	('deficits', 0.07064759199156614)
	('democratic', 0.059027820567006)
	('nuclear', 0.057051298493069655)
	('bipartisan', 0.05621697196857714)
	('help', 0.05595647019287517)
	('jobs', 0.05529766237923067)
	('percent', 0.049357112559317996)
	('billion', 0.047531608872991675)
	('spoke', 0.044957558540087546)
	('program', 0.04445803520298006)
	('reagan', 0.04080862116819602)
	('today', 0.040617120431638475)
	('dream', 0.04061457554588032)
	('america', 0.040102437314491465)
	('commitment', 0.03949833027087905)
William H. Taft 27
	('wool', 0.047408896219176946)
	('opium', 0.044267525429879453)
	('anti-trust', 0.04242343148164436)
	('arbitration', 0.03505661670862098)
	('panama', 0.03338085509775605)
	('procedure', 0.03329618907605213)
	('hague', 0.03299600226350117)
	('canal', 0.032239561898973874)
	('tariff', 0.03188058017359659)
	('postal', 0.02916912743240493)
	('parcel', 0.02801434776587729)
	('zelaya', 0.02697264560602233)
	('statute', 0.026648501578977288)
	('nationals', 0.026303026003079776)
	('filipinos', 0.026039720841105563)
	('liberia', 0.025795113360258047)
	('tobacco', 0.02554924832477607)
	('tolls', 0.023872725077088174)
	('schedule', 0.02373919677191108)
	('consular', 0.023717975990510873)
sotu
Richard Nixon 37
	('programs', 0.07082564642370187)
	('today', 0.06346494758559063)
	('program', 0.06315131165315788)
	('goal', 0.06242987349380369)
	('achieve', 0.05585830786287698)
	('help', 0.04592437503652123)
	('nixon', 0.04492560809265457)
	('colleagues', 0.0397511016190268)
	('initiatives', 0.03908792385188877)
	('chance', 0.03780964952007897)
	('spending', 0.03695251117758358)
	('america', 0.035386922889082406)
	('billion', 0.035108960268644754)
	('budget', 0.035108960268644754)
	('clean', 0.03285782815463352)
	('sixties', 0.03202263538473165)
	('confrontation', 0.03202263538473165)
	('percent', 0.031549637146268836)
	('freshmen', 0.031096790584628078)
	('expansionary', 0.031096790584628078)
Martin van Buren 8
	('buren', 0.04253233772979548)
	('specie', 0.04220629412058425)
	('banks', 0.038159470777759864)
	('notes', 0.036133831202003364)
	('circuit', 0.03202044825945126)
	('banking', 0.028503618713984255)
	('intrusions', 0.02765095674136854)
	('moneys', 0.025270721766154646)
	('graduation', 0.02503109122518142)
	('custody', 0.022526680595126344)
	('suspension', 0.02149922113902399)
	('seminoles', 0.02053061863824384)
	('disbursement', 0.02026993667351171)
	('objects', 0.019544746490021806)
	('safe-keeping', 0.01883017412959256)
	('preemption', 0.018716805709106176)
	('trustee', 0.018582280048025816)
	('unavailable', 0.01843397116091236)
	('embarrassments', 0.017755276644964957)
	('writ', 0.017542262647206475)
Benjamin Harrison 23
	('silver', 0.0787544784378458)
	('electors', 0.053798404291898076)
	('bullion', 0.0370020581559549)
	('meats', 0.03530056318925072)
	('pounds', 0.03213476724519739)
	('cent', 0.03203521002659271)
	('harrison', 0.03169556530471285)
	('methods', 0.031085035860216232)
	('pork', 0.028240450551400578)
	('cattle', 0.027751543616966176)
	('bering', 0.025560455341127455)
	('conference', 0.025204083129905054)
	('canadian', 0.02464802662274868)
	('circulation', 0.022896458072895635)
	('couplers', 0.022853297525890257)
	('brakes', 0.022853297525890257)
	('steamship', 0.022568871486997773)
	('postmaster-general', 0.021732749196286715)
	('settlers', 0.021732749196286715)
	('merchandise', 0.021624432624401432)
James Monroe 5
	('spain', 0.07845776341815042)
	('likewise', 0.04699110866456985)
	('presumed', 0.03183215956801498)
	('augmentation', 0.03183215956801498)
	('article', 0.03139294563004987)
	('tribes', 0.030980550269756157)
	('catholic', 0.028566075668459857)
	('colonies', 0.026852062094039914)
	('respecting', 0.026034933181290233)
	('fortifications', 0.025509458989337916)
	('entertained', 0.02416685588463592)
	('adventurers', 0.02400571616746406)
	('florida', 0.023856466265370333)
	('savages', 0.02337224372873988)
	('proportionably', 0.023107373010107863)
	('vessels', 0.023080719806359798)
	('monroe', 0.022300603244095402)
	('amelia', 0.022037361004995957)
	('buenos', 0.021868427409922807)
	('ayres', 0.021005001646531053)
Dwight D. Eisenhower 34
	('economic', 0.11320314249034724)
	('program', 0.1091559395042579)
	('communist', 0.08406250393683061)
	('programs', 0.06776518844027678)
	('atomic', 0.06627033666329606)
	('billion', 0.04754540403385803)
	('budget', 0.0453842493050463)
	('today', 0.04501498417240267)
	('farm', 0.039641464179673035)
	('basic', 0.03819492439361055)
	('help', 0.03816321171288807)
	('achieve', 0.03812572418425416)
	('soviet', 0.037414577578422564)
	('collective', 0.03583806781947987)
	('ballistic', 0.034171506762375854)
	('problems', 0.031899961642128764)
	('deterrent', 0.03162486533844399)
	('planning', 0.030718343845268458)
	('nuclear', 0.030718343845268458)
	('insurance', 0.02871094193595763)
Ulysses S. Grant 18
	('cable', 0.03799372990597601)
	('expatriation', 0.033363862837534584)
	('ulysses', 0.028642135834866755)
	('specie', 0.02782132523122224)
	('spain', 0.02686821416843244)
	('naturalization', 0.02384685019819049)
	('interpreters', 0.02202847818297474)
	('ironclads', 0.02202847818297474)
	('domingo', 0.021996369945565062)
	('herewith', 0.02089678794305526)
	('currency', 0.01864833303151882)
	('postmaster-general', 0.018620775637266537)
	('homestead', 0.017997029955462325)
	('majesty', 0.017545969585060446)
	('acres', 0.017545969585060446)
	('exhibition', 0.017382763670889083)
	('pensioners', 0.0173057946978045)
	('centennial', 0.016718710735771514)
	('woods', 0.016426116136396447)
	('legal-tender', 0.016426116136396447)
Woodrow Wilson 28
	('programme', 0.061160360331964495)
	('serviceable', 0.05504432429876805)
	('interstate', 0.04572066375904327)
	('scout', 0.04281225223237514)
	('woodrow', 0.04049121994535828)
	('processes', 0.039653896821673355)
	('tasks', 0.03749322959610115)
	('wilson', 0.03728359543882995)
	('instrumentalities', 0.03542981745218849)
	('economic', 0.03445829492907358)
	('debatable', 0.03167577591243995)
	('gentlemen', 0.03136333655607516)
	('enthusiasm', 0.030191896617980368)
	('german', 0.028947201351090975)
	('railways', 0.028575414849402042)
	('democracy', 0.028230392303933063)
	('method', 0.026821985575050538)
	('unrest', 0.026129049578237234)
	('porto', 0.026067956386049966)
	('thoughtful', 0.026067956386049966)
Millard Fillmore 13
	('california', 0.043534338623795556)
	('kossuth', 0.03256499685155532)
	('article', 0.029928973664954842)
	('respectfully', 0.02969609791954937)
	('postages', 0.02874768177983289)
	('invoice', 0.02822803752901824)
	('mexico', 0.02602175593522247)
	('dock', 0.024715495911708112)
	('fillmore', 0.02442374763866649)
	('swamp-land', 0.02442374763866649)
	('millard', 0.02442374763866649)
	('prescribing', 0.023956401483194077)
	('texas', 0.02322619662493811)
	('importer', 0.022764114969763823)
	('mexican', 0.02254358169140128)
	('objects', 0.02244673024871613)
	('peruvian', 0.022171043734421424)
	('oregon', 0.021951506901179533)
	('seamen', 0.02149585767635442)
	('corporal', 0.02117102814676368)
William McKinley 25
	('puerto', 0.05168960164808929)
	('spain', 0.04410189953759515)
	('gold', 0.04114662932119517)
	('islands', 0.03560986088658411)
	('philippine', 0.034459734432059526)
	('spanish', 0.03363511994159692)
	('cuba', 0.03363511994159692)
	('peking', 0.032708096316559215)
	('cuban', 0.03244338790913788)
	('philippines', 0.028035511128479327)
	('manila', 0.0279658168923055)
	('cable', 0.02787255293914876)
	('exposition', 0.02664992578250611)
	('legations', 0.025892780709389857)
	('william', 0.025881656300638132)
	('belligerency', 0.025407907665254085)
	('hawaii', 0.02412181410244167)
	('chinese', 0.023858404667879345)
	('tsung-li', 0.021931830389275025)
	('armor', 0.02189986302361688)
Abraham Lincoln 16
	('emancipation', 0.08869654774099045)
	('colored', 0.06184655171599825)
	('rebellion', 0.05301133004228421)
	('insurgent', 0.05301133004228421)
	('disloyal', 0.043429333817680126)
	('slavery', 0.04176272304605539)
	('invalid', 0.04061896025268934)
	('insurgents', 0.03975849753171316)
	('slave', 0.034258509480665965)
	('telegraph', 0.033193589719526656)
	('hired', 0.03309336520108008)
	('maryland', 0.03309336520108008)
	('kentucky', 0.03275660520834819)
	('colonizing', 0.032495168202151474)
	('loyal', 0.030625996900440624)
	('slaves', 0.028451648331022844)
	('chaplains', 0.028115797523277926)
	('retract', 0.028115797523277926)
	('disbursements', 0.027841815364036928)
	('insurrection', 0.026859760706163575)
John F. Kennedy 35
	('communist', 0.12413693648658296)
	('nuclear', 0.11438617694771898)
	('economic', 0.08970894354670254)
	('billion', 0.08005156236725537)
	('alliance', 0.06492960956482653)
	('help', 0.06482151195223293)
	('program', 0.06417867896744714)
	('basic', 0.05215787134953683)
	('goal', 0.05101612180093513)
	('latin', 0.05101612180093513)
	('hemispheric', 0.05072941486299534)
	('today', 0.04886167972528714)
	('programs', 0.04781138207040877)
	('jobs', 0.047515794888206286)
	('winds', 0.04519943147147111)
	('peace-keeping', 0.0438926165234593)
	('nassau', 0.0438926165234593)
	('farm', 0.0430289727342859)
	('cold', 0.042236262122850025)
	('communism', 0.041378978828860984)
Barack Obama 44
	('jobs', 0.22177474730336555)
	('businesses', 0.13167148295671652)
	('middle-class', 0.08365361164794274)
	('democrats', 0.07772045357986863)
	('kids', 0.07456250220030129)
	('help', 0.06837606963474971)
	('americans', 0.05931898986679658)
	('folks', 0.058843090353944756)
	('iran', 0.058435606842090274)
	('republicans', 0.05809594616532284)
	('college', 0.05474253516162776)
	('afghan', 0.053258930143072356)
	('clean', 0.051522386034473185)
	('biden', 0.050792717536058324)
	('nuclear', 0.050160564935892014)
	('students', 0.0489121448233412)
	('qaeda', 0.04843103832249317)
	('workers', 0.04828584370809889)
	('trillion', 0.04782797143376531)
	('student', 0.04309553303151556)
Rutherford B. Hayes 19
	('coinage', 0.06960150512269621)
	('silver', 0.057823455690127326)
	('examinations', 0.04085711512195214)
	('hayes', 0.033558895013304536)
	('qualifications', 0.027617691638842836)
	('rutherford', 0.026847116010643633)
	('gold', 0.025659306805473743)
	('coin', 0.025530741821478235)
	('resumption', 0.025530741821478235)
	('colored', 0.025309638226434988)
	('appointments', 0.02496823701897075)
	('specie', 0.02421937444041828)
	('polygamy', 0.023700059032659745)
	('utah', 0.023628715515866698)
	('commencing', 0.021933805279147896)
	('indians', 0.02145276118336877)
	('legal-tender', 0.021449207793095396)
	('postal', 0.021393013526287145)
	('tender', 0.02042855756097607)
	('fireproof', 0.020135337007982725)
Theodore Roosevelt 26
	('interstate', 0.08283831113875816)
	('forest', 0.05561050843602439)
	('corporations', 0.039620359612152614)
	('accidents', 0.03370025739195162)
	('philippines', 0.03194858630227087)
	('regards', 0.031773229737479494)
	('fashion', 0.03076530532811269)
	('hague', 0.02976540823796355)
	('standpoint', 0.02847126005370426)
	('philippine', 0.02792495990067069)
	('wrongdoing', 0.027769978056577316)
	('corporation', 0.027424360324614767)
	('isthmus', 0.026722035851212304)
	('canal', 0.02444660486707289)
	('type', 0.0244409459519073)
	('shipper', 0.024067314315700344)
	('monroe', 0.022481358365788767)
	('wage-worker', 0.022466838261301084)
	('islands', 0.02245944356248091)
	('wage-workers', 0.022215982445261854)
Jimmy Carter 39
	('soviet', 0.14915766279809894)
	('nuclear', 0.13039970400258996)
	('economic', 0.09538298690582014)
	('program', 0.09177823288488282)
	('commitment', 0.07126421667020282)
	('programs', 0.06958511663885737)
	('solar', 0.06421071593108213)
	('strategic', 0.05241128734850462)
	('major', 0.05198895841269969)
	('help', 0.051653209870886216)
	('percent', 0.0512565382603159)
	('regulatory', 0.051124314390125804)
	('budget', 0.050258251910249414)
	('refugee', 0.04966021405897373)
	('afghanistan', 0.04815803694831159)
	('persian', 0.04696792495478398)
	('jobs', 0.044747298839429676)
	('basic', 0.043661249655753645)
	('paperwork', 0.042565897764834625)
	('ensure', 0.042458463894112314)
Grover Cleveland 22:24
	('silver', 0.08195574186991465)
	('gold', 0.07178962506092643)
	('coinage', 0.04686043373331957)
	('notes', 0.0432849209926174)
	('cent', 0.032727623189539985)
	('grover', 0.029824231136583456)
	('civil-service', 0.02842708906880627)
	('allotments', 0.02585228303983034)
	('circulation', 0.025592143667443053)
	('circulating', 0.024544205599415232)
	('tariff', 0.024162684255248094)
	('ounces', 0.021543569199858618)
	('amounted', 0.021140603849479345)
	('preceding', 0.021140603849479345)
	('spain', 0.020154670363733505)
	('consular', 0.020073819093592953)
	('postal', 0.019804429516845645)
	('arbitration', 0.01919684043799803)
	('withdrawals', 0.0191108685533858)
	('bering', 0.0191108685533858)
Andrew Johnson 17
	('rebellion', 0.04379629305786753)
	('paper', 0.03525608482412996)
	('depreciated', 0.03447525651642221)
	('specie', 0.03352774342109414)
	('circulating', 0.030585724050898412)
	('circulation', 0.029305804208607768)
	('currency', 0.028765802688833476)
	('freedmen', 0.02870395939388686)
	('negroes', 0.02771337611378046)
	('electors', 0.025517984013933653)
	('gold', 0.022365132708585915)
	('silver', 0.022081950628569894)
	('negro', 0.02193879960135959)
	('evacuation', 0.021477188494021058)
	('blown', 0.021477188494021058)
	('cent', 0.02104953666690439)
	('elective', 0.020438270093671513)
	('medium', 0.02024178807618907)
	('monarchical', 0.01979526865270033)
	('sacredly', 0.01979526865270033)
Thomas Jefferson 3
	('jefferson', 0.08246851850002067)
	('dispositions', 0.0494811111000124)
	('barbary', 0.04763296112335975)
	('tripoli', 0.043318568074477905)
	('mediterranean', 0.042251487219935296)
	('fellow', 0.03988833083803485)
	('funded', 0.039603082910988754)
	('efficaciously', 0.03748052884058357)
	('ensuing', 0.036535390513106974)
	('thomas', 0.036066144285744305)
	('vessels', 0.03489337278603389)
	('port', 0.03449551030282567)
	('legislature', 0.03449551030282567)
	('militia', 0.03413280528971592)
	('orleans', 0.033686643822071934)
	('meditated', 0.03248892605585843)
	('extinguished', 0.030845046822000947)
	('embargo', 0.02941067390611079)
	('harbors', 0.02755728835428597)
	('mississippi', 0.02755728835428597)
William J. Clinton 42
	('parents', 0.1034390641109345)
	('help', 0.07607743937110463)
	('jobs', 0.07509071672580525)
	('budget', 0.07491903600777497)
	('thank', 0.06269774363419661)
	('global', 0.05827453400962557)
	('bipartisan', 0.056837915625340275)
	('challenge', 0.055447522232301226)
	('americans', 0.05385241860058931)
	('child', 0.05303676039611421)
	('percent', 0.049902285749666694)
	('nuclear', 0.04826248821565151)
	('medicare', 0.04739703862908251)
	('today', 0.04738356482304139)
	('college', 0.04677431470529261)
	('businesses', 0.0467056337570821)
	('brady', 0.045402475493768475)
	('children', 0.0419048074344995)
	('cuts', 0.03838637365358977)
	('empowerment', 0.037835396244807064)
Herbert Hoover 31
	('economic', 0.10820623474627004)
	('unemployment', 0.0515948430508936)
	('cent', 0.04610867882372253)
	('banking', 0.044440122804167474)
	('budget', 0.04298746210279849)
	('farm', 0.03830803929842007)
	('herbert', 0.037636354737037546)
	('banks', 0.03591764758251275)
	('normal', 0.03578456936844851)
	('visas', 0.034735047301980085)
	('activities', 0.03353664798308084)
	('shocks', 0.03353363805529731)
	('hoover', 0.03035132376439545)
	('origins', 0.030109083789630037)
	('overlap', 0.030109083789630037)
	('program', 0.029626748536111646)
	('exhaustive', 0.028652613769104728)
	('world-wide', 0.028378160379743427)
	('railways', 0.02820172583270762)
	('veterans', 0.02820172583270762)
Andrew Jackson 7
	('chambers', 0.038463112661613126)
	('french', 0.031317607747176165)
	('bank', 0.025955806028226912)
	('withstanding', 0.025343914531008115)
	('objects', 0.024183955927049177)
	('ministry', 0.02242481659609975)
	('ration', 0.019109546507268076)
	('intercourse', 0.018669618918254877)
	('francs', 0.017542654094744023)
	('deposit', 0.016273875004519097)
	('minister', 0.016211824355806127)
	('duties', 0.01603135196817688)
	('wines', 0.0158068326198872)
	('motives', 0.015675261075452536)
	('accompanying', 0.015460181254293142)
	('fellow', 0.015275142751299441)
	('installment', 0.014436935754989768)
	('france', 0.01399863695904373)
	('daffaires', 0.013842981242561293)
	('documents', 0.013711875347307053)
Gerald R. Ford 38
	('programs', 0.12779703315487612)
	('nuclear', 0.09155780327998342)
	('barrel', 0.07416933435523704)
	('economic', 0.07041569192615706)
	('strategic', 0.06583046948857178)
	('budget', 0.06570275797586682)
	('percent', 0.06521616764910723)
	('barrels', 0.06221646864048129)
	('spending', 0.06169511945407813)
	('crude', 0.0611100932333396)
	('vulnerability', 0.05933546748418963)
	('jobs', 0.05888061475317625)
	('petroleum', 0.056555845861967886)
	('achieve', 0.0564261167044901)
	('today', 0.053667907179745185)
	('freshman', 0.05143325548534641)
	('program', 0.05060931569039507)
	('help', 0.050554516988883344)
	('billion', 0.04637841739472952)
	('insulation', 0.04450160061314223)
John Adams 2
	('gentlemen', 0.23705094716304934)
	('croix', 0.08965606131718941)
	('adams', 0.07172484905375154)
	('article', 0.06600984861096947)
	('commissioners', 0.06328453163852271)
	('captures', 0.05277517161812261)
	('philadelphia', 0.046281262724323834)
	('passamaquoddy', 0.04528889304597441)
	('dispensations', 0.04447024919575585)
	('demarcation', 0.04222013729449809)
	('fundy', 0.03962257373697858)
	('catholic', 0.03627350137893355)
	('envoys', 0.03627350137893355)
	('condemnations', 0.03586242452687577)
	('majesty', 0.03300492430548473)
	('punctuality', 0.03279015892150245)
	('damages', 0.03166510297087357)
	('ensuing', 0.03125560994592239)
	('france', 0.030703764862761232)
	('consuls', 0.02964192648474691)
George W. Bush 43
	('terrorists', 0.22796661579435332)
	('iraqi', 0.2023207993220611)
	('iraq', 0.19476914016971497)
	('terrorist', 0.13453767489502821)
	('saddam', 0.10735389351782834)
	('iraqis', 0.09623082129903734)
	('qaeda', 0.0926832658684271)
	('hussein', 0.08670891399516904)
	('help', 0.08472278598905605)
	('afghanistan', 0.07848031035543311)
	('nuclear', 0.06819509036924201)
	('budget', 0.05989498280304343)
	('coalition', 0.059794522175568084)
	('regime', 0.059510198301482596)
	('qaida', 0.05880772412718948)
	('terror', 0.05787462839152804)
	('medicare', 0.055324866334337905)
	('americans', 0.05398098988253192)
	('seniors', 0.052320206903622074)
	('drug', 0.05175792375561078)
John Tyler 10
	('texas', 0.05915430092814346)
	('exchequer', 0.0479289213401844)
	('paper', 0.04091265394070938)
	('specie', 0.03491655046977247)
	('mexico', 0.03313712542194917)
	('notes', 0.03229501344472621)
	('parental', 0.03202816356350458)
	('annexation', 0.031473682634282296)
	('tyler', 0.02764636349475322)
	('overruling', 0.026690136302920487)
	('esteemed', 0.026690136302920487)
	('circulation', 0.023082146821792573)
	('indispensably', 0.022586781884879344)
	('currency', 0.021063767108666653)
	('evermore', 0.020734772621064913)
	('medium', 0.0205327168988544)
	('alterations', 0.020338014661868343)
	('revolting', 0.019325811697733546)
	('warehousing', 0.019325811697733546)
	('correspondence', 0.019083417035520033)
Franklin D. Roosevelt 32
	('japanese', 0.07672765769029806)
	('democratic', 0.0654877754928382)
	('hitler', 0.06032759058490455)
	('economic', 0.05749141493111894)
	('today', 0.05494684069915687)
	('fighting', 0.04338974711782562)
	('program', 0.041431727484046416)
	('democracy', 0.04073162161766017)
	('axis', 0.038121376118032936)
	('autocracy', 0.03803145386336886)
	('objectives', 0.036201538923464505)
	('nurses', 0.03584508597970712)
	('franklin', 0.03137466706700257)
	('decent', 0.02967568981691102)
	('nazi', 0.02852359039752665)
	('nazis', 0.02852359039752665)
	('roosevelt', 0.02746261552925473)
	('problems', 0.026264912739243394)
	('attack', 0.026264912739243394)
	('liberation', 0.025821044819111787)

To calculate the Cosine Similarity between every president by their texts


In [12]:
from math import *

# To calculate folder cosine similarity
def cal_similarity(folder1_tfidfs, folder2_tfidfs):
    # compute the similarity between the two arguments
    folder1_score = dict(folder1_tfidfs)
    folder2_score = dict(folder2_tfidfs)
    
    numerator = 0.0
    for key, valus in folder1_score.items():
        dotscore = folder1_score[key]*folder2_score.get(key, 0.0)
        numerator += dotscore
    # compute the l2 norm of each vector
    folder1_norm = math.sqrt(sum([score**2 for score in folder1_score.values()]))
    folder2_norm = math.sqrt(sum([score**2 for score in folder2_score.values()]))
    denominator = folder1_norm * folder2_norm + 1.0
    
    similarity = numerator/denominator
    return (similarity)

In [13]:
def sort_by_count(key_value, top_n):
    sorted_by_count_topn = sorted(key_value, key=lambda (k, v):v, reverse=True)[:top_n]
    return (sorted_by_count_topn)

In [14]:
num_of_folders = len(tfidfs.keys())
folder_similarity = dict()

for i in range(0, num_of_folders-1):
    for j in range(i+1, num_of_folders):
        folder1 = tfidfs.keys()[i]
        folder2 = tfidfs.keys()[j]
        similarity = cal_similarity(sort_by_count(tfidfs[folder1], 100), sort_by_count(tfidfs[folder2], 100))
        key = '%s and %s' % (folder1, folder2)
        folder_similarity[key] = similarity        
        #print('The similarity between President [%s] and [%s] is %.2f' % (folder1, folder2, similarity))

sorted_similarity = sort_by_count(folder_similarity.items(), len(folder_similarity))
f = open(r"Cosine.txt", "w")
f.write('The sorted President cosine similarities are:' + '\n')
print('The sorted President cosine similarities are:')
for k,v in sorted_similarity:
    print('%s: %s' % (k, v))
    f.write('%s: %s' % (k, v) + '\n')
f.close()


The sorted President cosine similarities are:
Barack Obama 44 and William J. Clinton 42: 0.0676334806187
Ronald Reagan 40 and Jimmy Carter 39: 0.0623734943335
Harry S. Truman 33 and Dwight D. Eisenhower 34: 0.0595218469118
Jimmy Carter 39 and Gerald R. Ford 38: 0.0584774329405
George H.W. Bush 41 and Ronald Reagan 40: 0.0558422689536
Barack Obama 44 and George W. Bush 43: 0.0546894180587
Ronald Reagan 40 and Gerald R. Ford 38: 0.0530576877938
Dwight D. Eisenhower 34 and John F. Kennedy 35: 0.0518104579733
John F. Kennedy 35 and Jimmy Carter 39: 0.0516111916764
Ronald Reagan 40 and William J. Clinton 42: 0.0514051229734
George H.W. Bush 41 and William J. Clinton 42: 0.0508569724243
Lyndon B. Johnson 36 and John F. Kennedy 35: 0.0483871769983
Dwight D. Eisenhower 34 and Jimmy Carter 39: 0.0477242185966
William J. Clinton 42 and George W. Bush 43: 0.0476947761951
George H.W. Bush 41 and George W. Bush 43: 0.047345218519
George H.W. Bush 41 and Jimmy Carter 39: 0.0470845378234
Harry S. Truman 33 and Jimmy Carter 39: 0.0451337004046
Lyndon B. Johnson 36 and Jimmy Carter 39: 0.0444321268807
George H.W. Bush 41 and Barack Obama 44: 0.0444225416568
George H.W. Bush 41 and Gerald R. Ford 38: 0.0442467164769
Lyndon B. Johnson 36 and Gerald R. Ford 38: 0.0436992463319
John F. Kennedy 35 and Gerald R. Ford 38: 0.0432741717334
Harry S. Truman 33 and John F. Kennedy 35: 0.0432450634479
Dwight D. Eisenhower 34 and Gerald R. Ford 38: 0.043084086215
Lyndon B. Johnson 36 and Ronald Reagan 40: 0.0430060068121
Ronald Reagan 40 and John F. Kennedy 35: 0.0404694611677
Ronald Reagan 40 and Barack Obama 44: 0.0404110979107
Ronald Reagan 40 and Dwight D. Eisenhower 34: 0.0394570660785
George H.W. Bush 41 and Lyndon B. Johnson 36: 0.0392741983237
Harry S. Truman 33 and Lyndon B. Johnson 36: 0.0371854307937
Harry S. Truman 33 and Ronald Reagan 40: 0.0371091206993
Lyndon B. Johnson 36 and Dwight D. Eisenhower 34: 0.037050350929
Lyndon B. Johnson 36 and Richard Nixon 37: 0.0367971839261
William J. Clinton 42 and Gerald R. Ford 38: 0.0364619942498
Ronald Reagan 40 and Richard Nixon 37: 0.0359651693628
George H.W. Bush 41 and John F. Kennedy 35: 0.0359205942697
Richard Nixon 37 and Gerald R. Ford 38: 0.0359076910885
Ronald Reagan 40 and George W. Bush 43: 0.035217494097
Lyndon B. Johnson 36 and William J. Clinton 42: 0.0348318289355
Jimmy Carter 39 and William J. Clinton 42: 0.0346507733862
Barack Obama 44 and Jimmy Carter 39: 0.0336254064823
Jimmy Carter 39 and George W. Bush 43: 0.0327762161222
John F. Kennedy 35 and William J. Clinton 42: 0.0327072538283
Harry S. Truman 33 and Gerald R. Ford 38: 0.0322539597607
George H.W. Bush 41 and Dwight D. Eisenhower 34: 0.0320762698153
Richard Nixon 37 and Jimmy Carter 39: 0.0320564919315
Barack Obama 44 and Gerald R. Ford 38: 0.0310177055984
George H.W. Bush 41 and Harry S. Truman 33: 0.0296489739953
Richard Nixon 37 and Dwight D. Eisenhower 34: 0.0290907865083
George H.W. Bush 41 and Richard Nixon 37: 0.0280547545919
Lyndon B. Johnson 36 and George W. Bush 43: 0.0280345134583
John F. Kennedy 35 and George W. Bush 43: 0.0280274455607
George Washington 1 and John Adams 2: 0.0277739763793
Lyndon B. Johnson 36 and Barack Obama 44: 0.0277275802026
Gerald R. Ford 38 and George W. Bush 43: 0.0276554486426
Richard Nixon 37 and John F. Kennedy 35: 0.0273484949516
John F. Kennedy 35 and Barack Obama 44: 0.0266413927823
Harry S. Truman 33 and Richard Nixon 37: 0.0244002257494
Richard Nixon 37 and William J. Clinton 42: 0.0238178360368
Dwight D. Eisenhower 34 and William J. Clinton 42: 0.0223105322661
Dwight D. Eisenhower 34 and Herbert Hoover 31: 0.0217843499618
Harry S. Truman 33 and Franklin D. Roosevelt 32: 0.0204387937794
Harry S. Truman 33 and William J. Clinton 42: 0.0202388165762
Ronald Reagan 40 and Franklin D. Roosevelt 32: 0.0200644689232
Harry S. Truman 33 and Herbert Hoover 31: 0.0199993730605
Dwight D. Eisenhower 34 and Franklin D. Roosevelt 32: 0.0193809297932
Richard Nixon 37 and George W. Bush 43: 0.0193304286056
Richard Nixon 37 and Barack Obama 44: 0.0177805055476
Jimmy Carter 39 and Herbert Hoover 31: 0.0173504667416
John F. Kennedy 35 and Franklin D. Roosevelt 32: 0.0166419783083
Ronald Reagan 40 and Herbert Hoover 31: 0.0166300152719
Dwight D. Eisenhower 34 and George W. Bush 43: 0.0161282875908
Benjamin Harrison 23 and Grover Cleveland 22:24: 0.0156395528982
George H.W. Bush 41 and Franklin D. Roosevelt 32: 0.015333147366
Harry S. Truman 33 and George W. Bush 43: 0.0147222788097
Lyndon B. Johnson 36 and Franklin D. Roosevelt 32: 0.0146086269858
Jimmy Carter 39 and Franklin D. Roosevelt 32: 0.0145380122034
John F. Kennedy 35 and Herbert Hoover 31: 0.0144648791472
Calvin Coolidge 30 and Herbert Hoover 31: 0.0142291377218
Rutherford B. Hayes 19 and Grover Cleveland 22:24: 0.0138443064828
William J. Clinton 42 and Franklin D. Roosevelt 32: 0.0133759337402
Gerald R. Ford 38 and Franklin D. Roosevelt 32: 0.0128350458347
George W. Bush 43 and Franklin D. Roosevelt 32: 0.0124598492429
Herbert Hoover 31 and Gerald R. Ford 38: 0.0123106339478
James Polk 11 and John Tyler 10: 0.0117753183602
Calvin Coolidge 30 and Dwight D. Eisenhower 34: 0.0117425882854
George H.W. Bush 41 and Herbert Hoover 31: 0.0115659953128
Dwight D. Eisenhower 34 and Barack Obama 44: 0.0114677886516
Zachary Taylor 12 and Millard Fillmore 13: 0.0113185599788
Harry S. Truman 33 and Barack Obama 44: 0.0108988675322
Richard Nixon 37 and Franklin D. Roosevelt 32: 0.0107054584194
Harry S. Truman 33 and Calvin Coolidge 30: 0.0105269940419
Calvin Coolidge 30 and Warren Harding 29: 0.010508427659
Herbert Hoover 31 and Franklin D. Roosevelt 32: 0.0103381460741
James Polk 11 and Millard Fillmore 13: 0.00983978402588
Benjamin Harrison 23 and Rutherford B. Hayes 19: 0.00954959250232
Warren Harding 29 and Dwight D. Eisenhower 34: 0.00953111113167
Barack Obama 44 and Franklin D. Roosevelt 32: 0.00930933518507
James Polk 11 and Zachary Taylor 12: 0.00912445874849
Warren Harding 29 and Herbert Hoover 31: 0.00889690264323
Lyndon B. Johnson 36 and Herbert Hoover 31: 0.00828250924886
Calvin Coolidge 30 and Jimmy Carter 39: 0.00801836044544
Grover Cleveland 22:24 and Andrew Johnson 17: 0.00794985991524
Chester A. Arthur 21 and Benjamin Harrison 23: 0.00780919075888
James Madison 4 and Thomas Jefferson 3: 0.0076945686523
James Madison 4 and James Monroe 5: 0.00723702535977
Chester A. Arthur 21 and Grover Cleveland 22:24: 0.00717289045669
William J. Clinton 42 and Herbert Hoover 31: 0.00714150657336
Calvin Coolidge 30 and Ronald Reagan 40: 0.00713861989387
William H. Taft 27 and Theodore Roosevelt 26: 0.00705142742255
Harry S. Truman 33 and Warren Harding 29: 0.0068791840903
Woodrow Wilson 28 and Franklin D. Roosevelt 32: 0.00685028483567
Woodrow Wilson 28 and John Adams 2: 0.00683674801902
Rutherford B. Hayes 19 and Andrew Johnson 17: 0.00666055370722
William McKinley 25 and Grover Cleveland 22:24: 0.00659086140689
Warren Harding 29 and Theodore Roosevelt 26: 0.00658067778409
Woodrow Wilson 28 and Theodore Roosevelt 26: 0.00657120156166
Calvin Coolidge 30 and Theodore Roosevelt 26: 0.00649547264935
Richard Nixon 37 and Herbert Hoover 31: 0.00637123136757
Dwight D. Eisenhower 34 and Woodrow Wilson 28: 0.00637078707398
James Monroe 5 and John Adams 2: 0.00632174466518
Warren Harding 29 and Jimmy Carter 39: 0.00625177923467
Calvin Coolidge 30 and John F. Kennedy 35: 0.00624998899536
James Madison 4 and George Washington 1: 0.00621608842356
Andrew Johnson 17 and John Tyler 10: 0.0060050682114
James Buchanan 15 and Abraham Lincoln 16: 0.00588455830398
George H.W. Bush 41 and Calvin Coolidge 30: 0.00582338632843
Woodrow Wilson 28 and Herbert Hoover 31: 0.00579728770601
John Quincy Adams 6 and James Monroe 5: 0.00578689328743
Calvin Coolidge 30 and Woodrow Wilson 28: 0.00566199593344
Calvin Coolidge 30 and Gerald R. Ford 38: 0.00553148866105
Benjamin Harrison 23 and Andrew Johnson 17: 0.00545149975388
John Quincy Adams 6 and John Adams 2: 0.00544521678304
Martin van Buren 8 and John Tyler 10: 0.00540150126581
George Washington 1 and Thomas Jefferson 3: 0.00538394184172
William McKinley 25 and Theodore Roosevelt 26: 0.00536891489175
Ronald Reagan 40 and Woodrow Wilson 28: 0.00510442559486
George H.W. Bush 41 and Woodrow Wilson 28: 0.00509899631856
James Polk 11 and James Buchanan 15: 0.00508795563248
Abraham Lincoln 16 and Andrew Johnson 17: 0.00506626316163
Warren Harding 29 and Woodrow Wilson 28: 0.00500077955971
Barack Obama 44 and Herbert Hoover 31: 0.00499548623969
Franklin Pierce 14 and James Buchanan 15: 0.00498036284212
William H. Taft 27 and Grover Cleveland 22:24: 0.00497961964881
Ulysses S. Grant 18 and William McKinley 25: 0.00496005302861
Grover Cleveland 22:24 and John Tyler 10: 0.00495857346855
Warren Harding 29 and John F. Kennedy 35: 0.00492610613208
Herbert Hoover 31 and George W. Bush 43: 0.00473295402758
Ulysses S. Grant 18 and Abraham Lincoln 16: 0.00470815258226
Woodrow Wilson 28 and Jimmy Carter 39: 0.00458499355922
Warren Harding 29 and Franklin D. Roosevelt 32: 0.00455868370401
Warren Harding 29 and Gerald R. Ford 38: 0.00445248692623
Chester A. Arthur 21 and Rutherford B. Hayes 19: 0.00442986468258
Harry S. Truman 33 and Woodrow Wilson 28: 0.0044106323464
Warren Harding 29 and Ronald Reagan 40: 0.00436468061096
James Monroe 5 and Thomas Jefferson 3: 0.00433193333553
James Monroe 5 and William McKinley 25: 0.00432876456715
Calvin Coolidge 30 and William H. Taft 27: 0.0042668777562
William H. Taft 27 and Herbert Hoover 31: 0.00423426489137
George Washington 1 and James Monroe 5: 0.00420411488479
Ulysses S. Grant 18 and Grover Cleveland 22:24: 0.0041177282811
James Monroe 5 and Andrew Jackson 7: 0.00407651546443
William H. Taft 27 and William McKinley 25: 0.00404757490741
Chester A. Arthur 21 and William McKinley 25: 0.00399771898988
John Quincy Adams 6 and Thomas Jefferson 3: 0.00392841134876
Calvin Coolidge 30 and Franklin D. Roosevelt 32: 0.00390993380949
James Monroe 5 and Millard Fillmore 13: 0.00390846018861
Ulysses S. Grant 18 and Rutherford B. Hayes 19: 0.0038090038367
Martin van Buren 8 and Grover Cleveland 22:24: 0.00380577932114
Woodrow Wilson 28 and Gerald R. Ford 38: 0.00379328445389
James Buchanan 15 and John Tyler 10: 0.00372577748645
James Buchanan 15 and James Monroe 5: 0.00372095360992
Ulysses S. Grant 18 and Andrew Johnson 17: 0.00366215389691
James Monroe 5 and Ulysses S. Grant 18: 0.00363527558605
Lyndon B. Johnson 36 and Calvin Coolidge 30: 0.003621915457
Millard Fillmore 13 and John Tyler 10: 0.00355862314486
Martin van Buren 8 and Andrew Johnson 17: 0.00354291928386
James Buchanan 15 and Andrew Johnson 17: 0.00352343205145
Benjamin Harrison 23 and Theodore Roosevelt 26: 0.00345559634827
James Buchanan 15 and Zachary Taylor 12: 0.00341100481521
John Quincy Adams 6 and Andrew Jackson 7: 0.00340352142226
Calvin Coolidge 30 and William J. Clinton 42: 0.00339421615191
James Buchanan 15 and Millard Fillmore 13: 0.00338591258534
Grover Cleveland 22:24 and Herbert Hoover 31: 0.00336165449318
Woodrow Wilson 28 and John F. Kennedy 35: 0.00336130749961
William H. Taft 27 and Benjamin Harrison 23: 0.00335912282387
George H.W. Bush 41 and Warren Harding 29: 0.00331750139541
Martin van Buren 8 and Andrew Jackson 7: 0.00330467294963
Chester A. Arthur 21 and William H. Taft 27: 0.00329886141919
James Buchanan 15 and Grover Cleveland 22:24: 0.00329523794484
Martin van Buren 8 and Rutherford B. Hayes 19: 0.00322833918298
Franklin Pierce 14 and James Monroe 5: 0.00320683592056
Woodrow Wilson 28 and William J. Clinton 42: 0.00316886389238
Calvin Coolidge 30 and Benjamin Harrison 23: 0.0031584514578
James Madison 4 and John Quincy Adams 6: 0.00314111318681
Millard Fillmore 13 and John Adams 2: 0.00313738806115
William McKinley 25 and Rutherford B. Hayes 19: 0.00312408075677
George Washington 1 and Woodrow Wilson 28: 0.00311806847611
James Buchanan 15 and Rutherford B. Hayes 19: 0.00310636008891
Abraham Lincoln 16 and Rutherford B. Hayes 19: 0.00310391436863
Franklin Pierce 14 and Zachary Taylor 12: 0.00306866770803
Calvin Coolidge 30 and Richard Nixon 37: 0.00306249546597
Zachary Taylor 12 and John Tyler 10: 0.00303390206123
Warren Harding 29 and Benjamin Harrison 23: 0.0030149156787
James Madison 4 and John Adams 2: 0.00298882475296
Ulysses S. Grant 18 and John Adams 2: 0.0029240500862
Calvin Coolidge 30 and Barack Obama 44: 0.00291902449645
Benjamin Harrison 23 and William McKinley 25: 0.00291345098241
Rutherford B. Hayes 19 and John Tyler 10: 0.00287114841995
Warren Harding 29 and Richard Nixon 37: 0.00279742167096
James Buchanan 15 and Martin van Buren 8: 0.00279531716323
Zachary Taylor 12 and Theodore Roosevelt 26: 0.00278517589053
Franklin Pierce 14 and Millard Fillmore 13: 0.00276096958493
Warren Harding 29 and William H. Taft 27: 0.00276089763815
James Polk 11 and James Monroe 5: 0.00274719171773
James Buchanan 15 and William McKinley 25: 0.00274084413821
Benjamin Harrison 23 and Herbert Hoover 31: 0.00269865795685
Thomas Jefferson 3 and Andrew Jackson 7: 0.00267507574831
John Quincy Adams 6 and George Washington 1: 0.00266668562245
Theodore Roosevelt 26 and Franklin D. Roosevelt 32: 0.00263474368759
Franklin Pierce 14 and John Quincy Adams 6: 0.00254260731105
James Buchanan 15 and Ulysses S. Grant 18: 0.00253004184047
Martin van Buren 8 and Herbert Hoover 31: 0.00252929169211
Ulysses S. Grant 18 and John Tyler 10: 0.00251168942086
Lyndon B. Johnson 36 and Woodrow Wilson 28: 0.00250196430512
Millard Fillmore 13 and Andrew Jackson 7: 0.00249133016846
Woodrow Wilson 28 and George W. Bush 43: 0.00242399047782
James Polk 11 and Martin van Buren 8: 0.00238647416137
William H. Taft 27 and Woodrow Wilson 28: 0.00233609713626
Andrew Jackson 7 and John Adams 2: 0.00231637206346
Millard Fillmore 13 and Thomas Jefferson 3: 0.00231232143987
James Madison 4 and James Polk 11: 0.00222395171952
Calvin Coolidge 30 and George W. Bush 43: 0.00217688021285
Ulysses S. Grant 18 and Millard Fillmore 13: 0.00216332413005
Thomas Jefferson 3 and John Adams 2: 0.0021584300683
John Quincy Adams 6 and Chester A. Arthur 21: 0.00214826098386
James Buchanan 15 and John Adams 2: 0.002138022583
John Quincy Adams 6 and Millard Fillmore 13: 0.00212938159962
Richard Nixon 37 and Woodrow Wilson 28: 0.00212005979206
Martin van Buren 8 and Ulysses S. Grant 18: 0.00211385135607
James Buchanan 15 and Benjamin Harrison 23: 0.00208748565664
Lyndon B. Johnson 36 and Warren Harding 29: 0.00207351358778
Calvin Coolidge 30 and William McKinley 25: 0.00204917609591
Franklin Pierce 14 and Andrew Jackson 7: 0.00204701112991
George Washington 1 and Millard Fillmore 13: 0.00202466490001
Chester A. Arthur 21 and Ulysses S. Grant 18: 0.00201005638988
Martin van Buren 8 and Millard Fillmore 13: 0.00200715545223
Benjamin Harrison 23 and John Tyler 10: 0.00199230740054
James Madison 4 and James Buchanan 15: 0.00199111218145
William H. Taft 27 and Rutherford B. Hayes 19: 0.00198440079902
George Washington 1 and Martin van Buren 8: 0.00193736539533
Zachary Taylor 12 and Andrew Jackson 7: 0.00193168561596
James Madison 4 and Franklin Pierce 14: 0.00192554184651
James Monroe 5 and John Tyler 10: 0.00191857337228
George Washington 1 and Andrew Jackson 7: 0.0018909548124
James Monroe 5 and Grover Cleveland 22:24: 0.0018799159627
Andrew Jackson 7 and John Tyler 10: 0.00187095315876
Chester A. Arthur 21 and James Monroe 5: 0.00186888661302
William H. Taft 27 and Dwight D. Eisenhower 34: 0.00184542895705
Zachary Taylor 12 and James Monroe 5: 0.00183675591633
Millard Fillmore 13 and Rutherford B. Hayes 19: 0.00183458536305
Zachary Taylor 12 and Abraham Lincoln 16: 0.00181790379045
William McKinley 25 and Andrew Johnson 17: 0.00179844745048
James Madison 4 and Millard Fillmore 13: 0.00178928585362
Benjamin Harrison 23 and Ulysses S. Grant 18: 0.00178437274895
James Polk 11 and Ulysses S. Grant 18: 0.00177196067103
Chester A. Arthur 21 and James Buchanan 15: 0.00174270275846
Abraham Lincoln 16 and Grover Cleveland 22:24: 0.00174182908122
Martin van Buren 8 and James Monroe 5: 0.00171833232177
William McKinley 25 and Abraham Lincoln 16: 0.00169255780639
Martin van Buren 8 and Benjamin Harrison 23: 0.00168410890657
James Buchanan 15 and Andrew Jackson 7: 0.00165325712125
Calvin Coolidge 30 and Rutherford B. Hayes 19: 0.00165237411851
James Polk 11 and Rutherford B. Hayes 19: 0.00165212828218
Benjamin Harrison 23 and Woodrow Wilson 28: 0.0016435684769
James Polk 11 and William H. Taft 27: 0.0016219995229
James Polk 11 and Andrew Jackson 7: 0.0016179940823
Chester A. Arthur 21 and Warren Harding 29: 0.001615204779
Franklin Pierce 14 and William McKinley 25: 0.00159177688434
Chester A. Arthur 21 and Andrew Jackson 7: 0.00156964875287
Ulysses S. Grant 18 and Theodore Roosevelt 26: 0.00155207478235
James Madison 4 and Andrew Jackson 7: 0.00155151901471
Theodore Roosevelt 26 and Herbert Hoover 31: 0.00154329827343
James Polk 11 and Thomas Jefferson 3: 0.00153745080497
Warren Harding 29 and William J. Clinton 42: 0.00153578040183
John Quincy Adams 6 and James Polk 11: 0.00153501234908
William H. Taft 27 and Ulysses S. Grant 18: 0.00150012256124
Franklin Pierce 14 and Ulysses S. Grant 18: 0.00149921192346
Chester A. Arthur 21 and Thomas Jefferson 3: 0.00147281960855
Franklin Pierce 14 and James Polk 11: 0.00145190077134
John F. Kennedy 35 and Grover Cleveland 22:24: 0.00145161973521
James Madison 4 and Ulysses S. Grant 18: 0.00144229183236
William McKinley 25 and Franklin D. Roosevelt 32: 0.00144213647485
James Polk 11 and Benjamin Harrison 23: 0.00141793899075
Warren Harding 29 and Grover Cleveland 22:24: 0.00140196204973
John Quincy Adams 6 and Martin van Buren 8: 0.00137963941945
Chester A. Arthur 21 and Andrew Johnson 17: 0.00137957446563
Harry S. Truman 33 and William H. Taft 27: 0.0013704338042
James Madison 4 and John Tyler 10: 0.00136383032108
Zachary Taylor 12 and William H. Taft 27: 0.00135300486365
Chester A. Arthur 21 and Theodore Roosevelt 26: 0.00135142329734
James Buchanan 15 and William H. Taft 27: 0.00134799367382
Warren Harding 29 and Rutherford B. Hayes 19: 0.00134195868154
Woodrow Wilson 28 and Barack Obama 44: 0.00131813037053
Zachary Taylor 12 and William McKinley 25: 0.00131412386945
Rutherford B. Hayes 19 and Herbert Hoover 31: 0.00130807557394
Franklin Pierce 14 and John Adams 2: 0.00130503893198
William H. Taft 27 and Abraham Lincoln 16: 0.00127516218615
Calvin Coolidge 30 and Grover Cleveland 22:24: 0.00127224089903
Franklin Pierce 14 and William H. Taft 27: 0.0012421119222
John Quincy Adams 6 and James Buchanan 15: 0.00123048391652
John Quincy Adams 6 and Zachary Taylor 12: 0.00119486038562
James Buchanan 15 and Thomas Jefferson 3: 0.00119175532103
Zachary Taylor 12 and Ulysses S. Grant 18: 0.00118966410917
George Washington 1 and Rutherford B. Hayes 19: 0.00117232315292
Zachary Taylor 12 and Martin van Buren 8: 0.00116593302897
Millard Fillmore 13 and Abraham Lincoln 16: 0.00116272652527
William McKinley 25 and John F. Kennedy 35: 0.00113369894044
Rutherford B. Hayes 19 and Theodore Roosevelt 26: 0.00113282070343
Calvin Coolidge 30 and Abraham Lincoln 16: 0.0011238882442
Franklin Pierce 14 and Grover Cleveland 22:24: 0.00110439656537
William McKinley 25 and John Tyler 10: 0.00109507265474
John Quincy Adams 6 and Ulysses S. Grant 18: 0.00109492169327
Zachary Taylor 12 and Woodrow Wilson 28: 0.00108755120198
Theodore Roosevelt 26 and Grover Cleveland 22:24: 0.00108319814543
Martin van Buren 8 and Abraham Lincoln 16: 0.00107422465294
Theodore Roosevelt 26 and Jimmy Carter 39: 0.00106563110416
William H. Taft 27 and Jimmy Carter 39: 0.00106407831757
Lyndon B. Johnson 36 and Theodore Roosevelt 26: 0.00104115853488
James Polk 11 and Andrew Johnson 17: 0.00103743440377
Grover Cleveland 22:24 and John Adams 2: 0.00103712509594
Martin van Buren 8 and Thomas Jefferson 3: 0.00102710834176
Franklin Pierce 14 and George Washington 1: 0.00102511658611
Ronald Reagan 40 and William H. Taft 27: 0.00102119320232
Richard Nixon 37 and Theodore Roosevelt 26: 0.00101464322396
Ulysses S. Grant 18 and Andrew Jackson 7: 0.00101009021267
William H. Taft 27 and John F. Kennedy 35: 0.00100332109207
Franklin Pierce 14 and Martin van Buren 8: 0.00100172033288
Chester A. Arthur 21 and John Tyler 10: 0.000988566400549
Ulysses S. Grant 18 and Herbert Hoover 31: 0.000970476030505
George H.W. Bush 41 and Theodore Roosevelt 26: 0.000965863834438
Chester A. Arthur 21 and Millard Fillmore 13: 0.000960967202659
James Madison 4 and Martin van Buren 8: 0.000959664327498
Theodore Roosevelt 26 and George W. Bush 43: 0.00095848741686
Benjamin Harrison 23 and James Monroe 5: 0.000953986883884
Calvin Coolidge 30 and Andrew Johnson 17: 0.000936712042904
Dwight D. Eisenhower 34 and Theodore Roosevelt 26: 0.000932960762702
Andrew Johnson 17 and Herbert Hoover 31: 0.000928071058604
John Quincy Adams 6 and Abraham Lincoln 16: 0.000925506759683
Abraham Lincoln 16 and Theodore Roosevelt 26: 0.000923083306861
Woodrow Wilson 28 and William McKinley 25: 0.000918886094251
Abraham Lincoln 16 and John Tyler 10: 0.000907963584053
Theodore Roosevelt 26 and William J. Clinton 42: 0.000896647328024
Chester A. Arthur 21 and Martin van Buren 8: 0.000894540578714
Franklin Pierce 14 and Theodore Roosevelt 26: 0.000894085140243
Zachary Taylor 12 and Rutherford B. Hayes 19: 0.000893060389317
Chester A. Arthur 21 and Zachary Taylor 12: 0.00085120259089
James Polk 11 and Grover Cleveland 22:24: 0.000844993909133
Franklin Pierce 14 and Chester A. Arthur 21: 0.000834889316483
William McKinley 25 and John Adams 2: 0.000834518155708
Chester A. Arthur 21 and John Adams 2: 0.000834332086918
William H. Taft 27 and Andrew Johnson 17: 0.000831612989266
Zachary Taylor 12 and Grover Cleveland 22:24: 0.000817874400194
Thomas Jefferson 3 and George W. Bush 43: 0.000813083474373
William H. Taft 27 and Millard Fillmore 13: 0.000798314895558
Barack Obama 44 and Theodore Roosevelt 26: 0.000790190697614
William H. Taft 27 and Gerald R. Ford 38: 0.000788984657665
Thomas Jefferson 3 and William J. Clinton 42: 0.0007859100486
Zachary Taylor 12 and John Adams 2: 0.000765898788304
Warren Harding 29 and William McKinley 25: 0.000761477915351
John F. Kennedy 35 and Theodore Roosevelt 26: 0.00075886834279
Franklin Pierce 14 and John Tyler 10: 0.0007573540968
George Washington 1 and Benjamin Harrison 23: 0.000748993375462
Chester A. Arthur 21 and James Polk 11: 0.00074147257239
Chester A. Arthur 21 and Calvin Coolidge 30: 0.000740891486937
Franklin Pierce 14 and Rutherford B. Hayes 19: 0.000737364517283
Harry S. Truman 33 and Theodore Roosevelt 26: 0.000736285571072
Grover Cleveland 22:24 and Andrew Jackson 7: 0.000726274807904
George Washington 1 and John Tyler 10: 0.000720488588746
James Madison 4 and Benjamin Harrison 23: 0.00071166157903
Benjamin Harrison 23 and Abraham Lincoln 16: 0.000710240907684
Warren Harding 29 and George W. Bush 43: 0.000706427146273
Benjamin Harrison 23 and Thomas Jefferson 3: 0.000704949052641
Franklin Pierce 14 and Abraham Lincoln 16: 0.000698609020909
Warren Harding 29 and Barack Obama 44: 0.000695290878565
Rutherford B. Hayes 19 and John Adams 2: 0.00069094655763
Abraham Lincoln 16 and Herbert Hoover 31: 0.000690329966761
Thomas Jefferson 3 and John Tyler 10: 0.000684394860431
George H.W. Bush 41 and William H. Taft 27: 0.000673109848156
George Washington 1 and James Buchanan 15: 0.000672157067031
Franklin Pierce 14 and Benjamin Harrison 23: 0.000660126385507
Ronald Reagan 40 and Theodore Roosevelt 26: 0.000657961028544
William H. Taft 27 and Franklin D. Roosevelt 32: 0.000657736697024
Ulysses S. Grant 18 and Thomas Jefferson 3: 0.000652285217168
Zachary Taylor 12 and Franklin D. Roosevelt 32: 0.000648812116044
Woodrow Wilson 28 and Rutherford B. Hayes 19: 0.000648680557871
William McKinley 25 and Herbert Hoover 31: 0.00064723952198
Millard Fillmore 13 and Andrew Johnson 17: 0.000631174706615
Calvin Coolidge 30 and Ulysses S. Grant 18: 0.000628438494485
Franklin Pierce 14 and Andrew Johnson 17: 0.000617583939923
George Washington 1 and Abraham Lincoln 16: 0.000607319121319
William H. Taft 27 and Martin van Buren 8: 0.000601493118937
Franklin Pierce 14 and Thomas Jefferson 3: 0.000597423940048
James Polk 11 and Abraham Lincoln 16: 0.000595586657891
Theodore Roosevelt 26 and Gerald R. Ford 38: 0.000592991868719
Warren Harding 29 and John Adams 2: 0.000547646969718
Millard Fillmore 13 and Theodore Roosevelt 26: 0.000541111317865
Grover Cleveland 22:24 and Thomas Jefferson 3: 0.000535292858323
John Quincy Adams 6 and Andrew Johnson 17: 0.000527584518088
John F. Kennedy 35 and Rutherford B. Hayes 19: 0.000521102409598
Warren Harding 29 and Andrew Johnson 17: 0.00051357569393
John Adams 2 and John Tyler 10: 0.000510598056663
George Washington 1 and Grover Cleveland 22:24: 0.000496012281406
Abraham Lincoln 16 and John Adams 2: 0.000490529845075
Andrew Johnson 17 and Andrew Jackson 7: 0.000489373770404
John Quincy Adams 6 and George W. Bush 43: 0.000488551688085
James Monroe 5 and Theodore Roosevelt 26: 0.000482024770167
William McKinley 25 and Andrew Jackson 7: 0.000472756767459
John Quincy Adams 6 and William J. Clinton 42: 0.000468321734399
Benjamin Harrison 23 and Andrew Jackson 7: 0.000467247423104
George Washington 1 and Ulysses S. Grant 18: 0.000457467003469
James Polk 11 and William McKinley 25: 0.000456733398371
John F. Kennedy 35 and Andrew Johnson 17: 0.000456454768694
George Washington 1 and Andrew Johnson 17: 0.000453517678583
Benjamin Harrison 23 and Franklin D. Roosevelt 32: 0.000446899104313
Zachary Taylor 12 and Thomas Jefferson 3: 0.000443805661342
James Monroe 5 and Abraham Lincoln 16: 0.000439289272477
James Polk 11 and John Adams 2: 0.000434854511491
Martin van Buren 8 and John Adams 2: 0.000434310853945
Benjamin Harrison 23 and John F. Kennedy 35: 0.000431302878083
James Polk 11 and Ronald Reagan 40: 0.000430579793689
Lyndon B. Johnson 36 and Andrew Johnson 17: 0.000426665891494
George Washington 1 and Zachary Taylor 12: 0.000426508455606
Benjamin Harrison 23 and Millard Fillmore 13: 0.000425097290908
Millard Fillmore 13 and William McKinley 25: 0.000406064085287
William H. Taft 27 and William J. Clinton 42: 0.000404300344111
Millard Fillmore 13 and Grover Cleveland 22:24: 0.000387747010345
John F. Kennedy 35 and John Tyler 10: 0.000387623967887
Warren Harding 29 and Abraham Lincoln 16: 0.000379707859002
John Quincy Adams 6 and Rutherford B. Hayes 19: 0.000371004834427
Chester A. Arthur 21 and Abraham Lincoln 16: 0.000355405232176
Woodrow Wilson 28 and Grover Cleveland 22:24: 0.000355294289767
James Madison 4 and Andrew Johnson 17: 0.000354878536724
Zachary Taylor 12 and Benjamin Harrison 23: 0.000353043468782
Lyndon B. Johnson 36 and William H. Taft 27: 0.000352111841499
Chester A. Arthur 21 and William J. Clinton 42: 0.000348157154137
James Polk 11 and George Washington 1: 0.00034696199224
Benjamin Harrison 23 and John Adams 2: 0.000346747761799
Rutherford B. Hayes 19 and Andrew Jackson 7: 0.000334469983215
Andrew Jackson 7 and George W. Bush 43: 0.000331360596086
Calvin Coolidge 30 and Zachary Taylor 12: 0.000328347734083
John Quincy Adams 6 and William H. Taft 27: 0.000328207698849
Warren Harding 29 and Ulysses S. Grant 18: 0.0003263950655
Chester A. Arthur 21 and Herbert Hoover 31: 0.00032456606855
Woodrow Wilson 28 and Andrew Johnson 17: 0.0003167538112
William J. Clinton 42 and Andrew Jackson 7: 0.000313115255342
Dwight D. Eisenhower 34 and Rutherford B. Hayes 19: 0.000306197358783
Ulysses S. Grant 18 and John F. Kennedy 35: 0.000305246848819
Ulysses S. Grant 18 and Woodrow Wilson 28: 0.000297714108383
Calvin Coolidge 30 and Thomas Jefferson 3: 0.00029373284455
John Quincy Adams 6 and Grover Cleveland 22:24: 0.000286514192464
William H. Taft 27 and George W. Bush 43: 0.000286244707463
Dwight D. Eisenhower 34 and Grover Cleveland 22:24: 0.00028248492833
Chester A. Arthur 21 and Jimmy Carter 39: 0.000281435631326
William H. Taft 27 and Barack Obama 44: 0.00027748462076
Grover Cleveland 22:24 and William J. Clinton 42: 0.000272675342061
Dwight D. Eisenhower 34 and Abraham Lincoln 16: 0.000270785647924
John Quincy Adams 6 and John Tyler 10: 0.000267617695188
Benjamin Harrison 23 and William J. Clinton 42: 0.000265174907969
James Polk 11 and Warren Harding 29: 0.000261316632098
John Quincy Adams 6 and Benjamin Harrison 23: 0.000259219493405
William H. Taft 27 and Richard Nixon 37: 0.000257203418627
William H. Taft 27 and James Monroe 5: 0.000252607130249
Rutherford B. Hayes 19 and Franklin D. Roosevelt 32: 0.000249267672811
George Washington 1 and William H. Taft 27: 0.000248257181048
Abraham Lincoln 16 and Thomas Jefferson 3: 0.000246559422761
Rutherford B. Hayes 19 and Jimmy Carter 39: 0.000235192557736
Dwight D. Eisenhower 34 and Andrew Johnson 17: 0.00022290418162
Dwight D. Eisenhower 34 and William McKinley 25: 0.000202200367944
James Monroe 5 and Andrew Johnson 17: 0.000201662555611
Dwight D. Eisenhower 34 and Ulysses S. Grant 18: 0.000193614204963
Lyndon B. Johnson 36 and Andrew Jackson 7: 0.000182359238248
James Polk 11 and Herbert Hoover 31: 0.000182209833579
Andrew Johnson 17 and Thomas Jefferson 3: 0.000182180807985
Rutherford B. Hayes 19 and Thomas Jefferson 3: 0.000178854291243
Grover Cleveland 22:24 and Franklin D. Roosevelt 32: 0.000177482503574
James Polk 11 and Woodrow Wilson 28: 0.000164002832269
Benjamin Harrison 23 and Dwight D. Eisenhower 34: 0.000163519588456
Franklin Pierce 14 and Calvin Coolidge 30: 0.000155530697782
Harry S. Truman 33 and Rutherford B. Hayes 19: 0.000143714297566
William H. Taft 27 and Andrew Jackson 7: 0.000143249326734
James Monroe 5 and Rutherford B. Hayes 19: 0.000141012734251
James Polk 11 and Theodore Roosevelt 26: 0.000135232666018
Calvin Coolidge 30 and Millard Fillmore 13: 0.000129412019128
Thomas Jefferson 3 and Gerald R. Ford 38: 0.0
sotu and Theodore Roosevelt 26: 0.0
George H.W. Bush 41 and James Monroe 5: 0.0
Abraham Lincoln 16 and Andrew Jackson 7: 0.0
James Madison 4 and Chester A. Arthur 21: 0.0
James Madison 4 and Jimmy Carter 39: 0.0
James Madison 4 and Theodore Roosevelt 26: 0.0
Benjamin Harrison 23 and Gerald R. Ford 38: 0.0
George Washington 1 and Richard Nixon 37: 0.0
George H.W. Bush 41 and James Buchanan 15: 0.0
Barack Obama 44 and Thomas Jefferson 3: 0.0
James Polk 11 and George W. Bush 43: 0.0
Richard Nixon 37 and John Tyler 10: 0.0
Lyndon B. Johnson 36 and Thomas Jefferson 3: 0.0
Abraham Lincoln 16 and William J. Clinton 42: 0.0
Harry S. Truman 33 and Ulysses S. Grant 18: 0.0
James Madison 4 and Herbert Hoover 31: 0.0
Millard Fillmore 13 and Barack Obama 44: 0.0
James Polk 11 and Franklin D. Roosevelt 32: 0.0
John F. Kennedy 35 and Andrew Jackson 7: 0.0
James Monroe 5 and George W. Bush 43: 0.0
John Quincy Adams 6 and Jimmy Carter 39: 0.0
John Adams 2 and Franklin D. Roosevelt 32: 0.0
Thomas Jefferson 3 and Franklin D. Roosevelt 32: 0.0
Zachary Taylor 12 and Jimmy Carter 39: 0.0
George H.W. Bush 41 and Millard Fillmore 13: 0.0
James Buchanan 15 and William J. Clinton 42: 0.0
James Monroe 5 and Gerald R. Ford 38: 0.0
Richard Nixon 37 and Benjamin Harrison 23: 0.0
James Madison 4 and sotu: 0.0
sotu and Abraham Lincoln 16: 0.0
Lyndon B. Johnson 36 and Rutherford B. Hayes 19: 0.0
Chester A. Arthur 21 and George Washington 1: 0.0
James Madison 4 and George H.W. Bush 41: 0.0
Abraham Lincoln 16 and Barack Obama 44: 0.0
Chester A. Arthur 21 and Woodrow Wilson 28: 0.0
James Monroe 5 and Jimmy Carter 39: 0.0
James Polk 11 and Lyndon B. Johnson 36: 0.0
James Madison 4 and Lyndon B. Johnson 36: 0.0
sotu and George W. Bush 43: 0.0
Calvin Coolidge 30 and Andrew Jackson 7: 0.0
James Madison 4 and Warren Harding 29: 0.0
Harry S. Truman 33 and sotu: 0.0
James Madison 4 and Rutherford B. Hayes 19: 0.0
William McKinley 25 and Barack Obama 44: 0.0
sotu and Jimmy Carter 39: 0.0
Zachary Taylor 12 and Andrew Johnson 17: 0.0
George H.W. Bush 41 and Zachary Taylor 12: 0.0
Grover Cleveland 22:24 and Gerald R. Ford 38: 0.0
Millard Fillmore 13 and John F. Kennedy 35: 0.0
William McKinley 25 and Jimmy Carter 39: 0.0
sotu and Millard Fillmore 13: 0.0
William McKinley 25 and Thomas Jefferson 3: 0.0
Chester A. Arthur 21 and Gerald R. Ford 38: 0.0
Dwight D. Eisenhower 34 and John Adams 2: 0.0
James Buchanan 15 and Gerald R. Ford 38: 0.0
Thomas Jefferson 3 and Herbert Hoover 31: 0.0
Grover Cleveland 22:24 and George W. Bush 43: 0.0
James Polk 11 and Dwight D. Eisenhower 34: 0.0
George Washington 1 and William J. Clinton 42: 0.0
George Washington 1 and William McKinley 25: 0.0
Martin van Buren 8 and Gerald R. Ford 38: 0.0
Franklin Pierce 14 and Dwight D. Eisenhower 34: 0.0
Millard Fillmore 13 and Herbert Hoover 31: 0.0
Rutherford B. Hayes 19 and William J. Clinton 42: 0.0
Lyndon B. Johnson 36 and Ulysses S. Grant 18: 0.0
George H.W. Bush 41 and James Polk 11: 0.0
sotu and James Monroe 5: 0.0
James Polk 11 and William J. Clinton 42: 0.0
Martin van Buren 8 and John F. Kennedy 35: 0.0
Benjamin Harrison 23 and George W. Bush 43: 0.0
Warren Harding 29 and James Monroe 5: 0.0
Abraham Lincoln 16 and John F. Kennedy 35: 0.0
Abraham Lincoln 16 and George W. Bush 43: 0.0
Franklin Pierce 14 and Richard Nixon 37: 0.0
James Madison 4 and Richard Nixon 37: 0.0
Franklin Pierce 14 and Harry S. Truman 33: 0.0
James Madison 4 and Abraham Lincoln 16: 0.0
sotu and Barack Obama 44: 0.0
Jimmy Carter 39 and Thomas Jefferson 3: 0.0
sotu and Dwight D. Eisenhower 34: 0.0
sotu and Rutherford B. Hayes 19: 0.0
John F. Kennedy 35 and John Adams 2: 0.0
James Buchanan 15 and Herbert Hoover 31: 0.0
Ronald Reagan 40 and James Monroe 5: 0.0
Martin van Buren 8 and George W. Bush 43: 0.0
Millard Fillmore 13 and Franklin D. Roosevelt 32: 0.0
George H.W. Bush 41 and Franklin Pierce 14: 0.0
Calvin Coolidge 30 and John Adams 2: 0.0
Harry S. Truman 33 and Andrew Jackson 7: 0.0
Ronald Reagan 40 and William McKinley 25: 0.0
Richard Nixon 37 and Rutherford B. Hayes 19: 0.0
Millard Fillmore 13 and Jimmy Carter 39: 0.0
Ronald Reagan 40 and Abraham Lincoln 16: 0.0
sotu and Richard Nixon 37: 0.0
George Washington 1 and Jimmy Carter 39: 0.0
Warren Harding 29 and sotu: 0.0
Dwight D. Eisenhower 34 and Andrew Jackson 7: 0.0
Franklin Pierce 14 and Franklin D. Roosevelt 32: 0.0
James Buchanan 15 and sotu: 0.0
Lyndon B. Johnson 36 and John Adams 2: 0.0
Richard Nixon 37 and Millard Fillmore 13: 0.0
George H.W. Bush 41 and John Quincy Adams 6: 0.0
Richard Nixon 37 and Ulysses S. Grant 18: 0.0
John Quincy Adams 6 and Calvin Coolidge 30: 0.0
Franklin Pierce 14 and Barack Obama 44: 0.0
John F. Kennedy 35 and Thomas Jefferson 3: 0.0
James Buchanan 15 and Theodore Roosevelt 26: 0.0
Lyndon B. Johnson 36 and Grover Cleveland 22:24: 0.0
Jimmy Carter 39 and John Adams 2: 0.0
Harry S. Truman 33 and John Tyler 10: 0.0
Millard Fillmore 13 and Gerald R. Ford 38: 0.0
Woodrow Wilson 28 and John Tyler 10: 0.0
George H.W. Bush 41 and Andrew Jackson 7: 0.0
Harry S. Truman 33 and Zachary Taylor 12: 0.0
John Quincy Adams 6 and sotu: 0.0
James Madison 4 and George W. Bush 43: 0.0
Abraham Lincoln 16 and Franklin D. Roosevelt 32: 0.0
Richard Nixon 37 and Thomas Jefferson 3: 0.0
sotu and William McKinley 25: 0.0
Ronald Reagan 40 and Andrew Johnson 17: 0.0
Franklin Pierce 14 and George W. Bush 43: 0.0
Dwight D. Eisenhower 34 and Thomas Jefferson 3: 0.0
George H.W. Bush 41 and William McKinley 25: 0.0
Jimmy Carter 39 and Andrew Jackson 7: 0.0
James Madison 4 and Grover Cleveland 22:24: 0.0
Dwight D. Eisenhower 34 and John Tyler 10: 0.0
Ronald Reagan 40 and Andrew Jackson 7: 0.0
James Buchanan 15 and Woodrow Wilson 28: 0.0
Andrew Johnson 17 and John Adams 2: 0.0
Richard Nixon 37 and William McKinley 25: 0.0
Ronald Reagan 40 and John Adams 2: 0.0
George Washington 1 and Warren Harding 29: 0.0
Harry S. Truman 33 and William McKinley 25: 0.0
Franklin Pierce 14 and sotu: 0.0
James Polk 11 and Gerald R. Ford 38: 0.0
James Madison 4 and William McKinley 25: 0.0
Ronald Reagan 40 and Thomas Jefferson 3: 0.0
Chester A. Arthur 21 and John F. Kennedy 35: 0.0
Lyndon B. Johnson 36 and Martin van Buren 8: 0.0
James Polk 11 and Barack Obama 44: 0.0
Andrew Johnson 17 and George W. Bush 43: 0.0
George Washington 1 and Ronald Reagan 40: 0.0
Zachary Taylor 12 and sotu: 0.0
Calvin Coolidge 30 and Martin van Buren 8: 0.0
Chester A. Arthur 21 and Lyndon B. Johnson 36: 0.0
Theodore Roosevelt 26 and Andrew Johnson 17: 0.0
Woodrow Wilson 28 and Abraham Lincoln 16: 0.0
James Monroe 5 and Franklin D. Roosevelt 32: 0.0
Warren Harding 29 and Zachary Taylor 12: 0.0
Jimmy Carter 39 and John Tyler 10: 0.0
Zachary Taylor 12 and Gerald R. Ford 38: 0.0
Calvin Coolidge 30 and James Buchanan 15: 0.0
John Quincy Adams 6 and Lyndon B. Johnson 36: 0.0
Chester A. Arthur 21 and Richard Nixon 37: 0.0
James Polk 11 and Calvin Coolidge 30: 0.0
James Buchanan 15 and Barack Obama 44: 0.0
Ronald Reagan 40 and Rutherford B. Hayes 19: 0.0
Ronald Reagan 40 and Martin van Buren 8: 0.0
sotu and Gerald R. Ford 38: 0.0
Lyndon B. Johnson 36 and John Tyler 10: 0.0
Lyndon B. Johnson 36 and Zachary Taylor 12: 0.0
Woodrow Wilson 28 and Millard Fillmore 13: 0.0
George Washington 1 and Herbert Hoover 31: 0.0
Gerald R. Ford 38 and John Adams 2: 0.0
George H.W. Bush 41 and Rutherford B. Hayes 19: 0.0
Martin van Buren 8 and William McKinley 25: 0.0
Barack Obama 44 and John Tyler 10: 0.0
Theodore Roosevelt 26 and Andrew Jackson 7: 0.0
Warren Harding 29 and Thomas Jefferson 3: 0.0
John Quincy Adams 6 and Ronald Reagan 40: 0.0
Abraham Lincoln 16 and Jimmy Carter 39: 0.0
John Quincy Adams 6 and Woodrow Wilson 28: 0.0
Ronald Reagan 40 and Ulysses S. Grant 18: 0.0
Harry S. Truman 33 and Millard Fillmore 13: 0.0
John Quincy Adams 6 and William McKinley 25: 0.0
William McKinley 25 and William J. Clinton 42: 0.0
Lyndon B. Johnson 36 and sotu: 0.0
Harry S. Truman 33 and Benjamin Harrison 23: 0.0
James Madison 4 and Harry S. Truman 33: 0.0
James Buchanan 15 and John F. Kennedy 35: 0.0
William McKinley 25 and George W. Bush 43: 0.0
Lyndon B. Johnson 36 and William McKinley 25: 0.0
George H.W. Bush 41 and Martin van Buren 8: 0.0
John Quincy Adams 6 and John F. Kennedy 35: 0.0
Ulysses S. Grant 18 and Barack Obama 44: 0.0
James Polk 11 and Jimmy Carter 39: 0.0
George Washington 1 and Franklin D. Roosevelt 32: 0.0
Richard Nixon 37 and Andrew Johnson 17: 0.0
George Washington 1 and Dwight D. Eisenhower 34: 0.0
James Madison 4 and Barack Obama 44: 0.0
James Polk 11 and sotu: 0.0
Franklin Pierce 14 and Lyndon B. Johnson 36: 0.0
George Washington 1 and Theodore Roosevelt 26: 0.0
Harry S. Truman 33 and Grover Cleveland 22:24: 0.0
Ronald Reagan 40 and sotu: 0.0
Richard Nixon 37 and Andrew Jackson 7: 0.0
sotu and Franklin D. Roosevelt 32: 0.0
Richard Nixon 37 and Abraham Lincoln 16: 0.0
Zachary Taylor 12 and William J. Clinton 42: 0.0
William H. Taft 27 and John Tyler 10: 0.0
Calvin Coolidge 30 and James Monroe 5: 0.0
James Madison 4 and Ronald Reagan 40: 0.0
Chester A. Arthur 21 and sotu: 0.0
Andrew Johnson 17 and Gerald R. Ford 38: 0.0
Harry S. Truman 33 and James Monroe 5: 0.0
Martin van Buren 8 and Barack Obama 44: 0.0
Ulysses S. Grant 18 and Gerald R. Ford 38: 0.0
Chester A. Arthur 21 and Franklin D. Roosevelt 32: 0.0
Harry S. Truman 33 and Abraham Lincoln 16: 0.0
Lyndon B. Johnson 36 and Millard Fillmore 13: 0.0
James Buchanan 15 and Richard Nixon 37: 0.0
Warren Harding 29 and Andrew Jackson 7: 0.0
Barack Obama 44 and Grover Cleveland 22:24: 0.0
Zachary Taylor 12 and Richard Nixon 37: 0.0
William J. Clinton 42 and John Tyler 10: 0.0
Harry S. Truman 33 and Andrew Johnson 17: 0.0
George H.W. Bush 41 and Benjamin Harrison 23: 0.0
Calvin Coolidge 30 and sotu: 0.0
George H.W. Bush 41 and sotu: 0.0
James Madison 4 and John F. Kennedy 35: 0.0
Benjamin Harrison 23 and Barack Obama 44: 0.0
sotu and Andrew Jackson 7: 0.0
Richard Nixon 37 and John Adams 2: 0.0
Ulysses S. Grant 18 and Franklin D. Roosevelt 32: 0.0
Rutherford B. Hayes 19 and Gerald R. Ford 38: 0.0
James Polk 11 and John F. Kennedy 35: 0.0
Zachary Taylor 12 and Dwight D. Eisenhower 34: 0.0
George H.W. Bush 41 and Chester A. Arthur 21: 0.0
James Buchanan 15 and Dwight D. Eisenhower 34: 0.0
James Madison 4 and Dwight D. Eisenhower 34: 0.0
Warren Harding 29 and Millard Fillmore 13: 0.0
Franklin Pierce 14 and Herbert Hoover 31: 0.0
George Washington 1 and Calvin Coolidge 30: 0.0
John Quincy Adams 6 and Herbert Hoover 31: 0.0
James Monroe 5 and John F. Kennedy 35: 0.0
William H. Taft 27 and Thomas Jefferson 3: 0.0
Harry S. Truman 33 and Thomas Jefferson 3: 0.0
James Madison 4 and Calvin Coolidge 30: 0.0
George H.W. Bush 41 and Abraham Lincoln 16: 0.0
Theodore Roosevelt 26 and John Adams 2: 0.0
James Buchanan 15 and Franklin D. Roosevelt 32: 0.0
Andrew Jackson 7 and Gerald R. Ford 38: 0.0
Warren Harding 29 and Martin van Buren 8: 0.0
Franklin Pierce 14 and Woodrow Wilson 28: 0.0
Ulysses S. Grant 18 and Jimmy Carter 39: 0.0
Chester A. Arthur 21 and Barack Obama 44: 0.0
sotu and Ulysses S. Grant 18: 0.0
Franklin Pierce 14 and William J. Clinton 42: 0.0
sotu and Martin van Buren 8: 0.0
George W. Bush 43 and John Tyler 10: 0.0
Millard Fillmore 13 and William J. Clinton 42: 0.0
Zachary Taylor 12 and Barack Obama 44: 0.0
Richard Nixon 37 and James Monroe 5: 0.0
Barack Obama 44 and John Adams 2: 0.0
William H. Taft 27 and John Adams 2: 0.0
James Buchanan 15 and George W. Bush 43: 0.0
Martin van Buren 8 and Franklin D. Roosevelt 32: 0.0
sotu and John Tyler 10: 0.0
George Washington 1 and sotu: 0.0
Warren Harding 29 and John Tyler 10: 0.0
James Monroe 5 and Barack Obama 44: 0.0
Harry S. Truman 33 and George Washington 1: 0.0
James Madison 4 and Zachary Taylor 12: 0.0
George Washington 1 and Gerald R. Ford 38: 0.0
John Quincy Adams 6 and Richard Nixon 37: 0.0
Jimmy Carter 39 and Andrew Johnson 17: 0.0
Barack Obama 44 and Rutherford B. Hayes 19: 0.0
sotu and Herbert Hoover 31: 0.0
sotu and Thomas Jefferson 3: 0.0
Warren Harding 29 and James Buchanan 15: 0.0
George H.W. Bush 41 and John Adams 2: 0.0
James Madison 4 and Woodrow Wilson 28: 0.0
Theodore Roosevelt 26 and John Tyler 10: 0.0
Millard Fillmore 13 and George W. Bush 43: 0.0
Ronald Reagan 40 and Millard Fillmore 13: 0.0
Chester A. Arthur 21 and Ronald Reagan 40: 0.0
Barack Obama 44 and Andrew Jackson 7: 0.0
Franklin Pierce 14 and Warren Harding 29: 0.0
Rutherford B. Hayes 19 and George W. Bush 43: 0.0
George H.W. Bush 41 and Thomas Jefferson 3: 0.0
James Buchanan 15 and Jimmy Carter 39: 0.0
sotu and Andrew Johnson 17: 0.0
Chester A. Arthur 21 and George W. Bush 43: 0.0
William H. Taft 27 and sotu: 0.0
John Tyler 10 and Franklin D. Roosevelt 32: 0.0
sotu and William J. Clinton 42: 0.0
William J. Clinton 42 and John Adams 2: 0.0
James Madison 4 and William J. Clinton 42: 0.0
Richard Nixon 37 and Martin van Buren 8: 0.0
George Washington 1 and John F. Kennedy 35: 0.0
Harry S. Truman 33 and James Buchanan 15: 0.0
Martin van Buren 8 and Jimmy Carter 39: 0.0
Chester A. Arthur 21 and Harry S. Truman 33: 0.0
James Madison 4 and William H. Taft 27: 0.0
Barack Obama 44 and Andrew Johnson 17: 0.0
James Madison 4 and Gerald R. Ford 38: 0.0
James Polk 11 and Richard Nixon 37: 0.0
George H.W. Bush 41 and John Tyler 10: 0.0
James Madison 4 and Franklin D. Roosevelt 32: 0.0
Andrew Johnson 17 and Franklin D. Roosevelt 32: 0.0
sotu and Grover Cleveland 22:24: 0.0
Andrew Johnson 17 and William J. Clinton 42: 0.0
George H.W. Bush 41 and Andrew Johnson 17: 0.0
Chester A. Arthur 21 and Dwight D. Eisenhower 34: 0.0
Ronald Reagan 40 and Grover Cleveland 22:24: 0.0
sotu and John Adams 2: 0.0
Benjamin Harrison 23 and Jimmy Carter 39: 0.0
Gerald R. Ford 38 and John Tyler 10: 0.0
Lyndon B. Johnson 36 and Benjamin Harrison 23: 0.0
Franklin Pierce 14 and Jimmy Carter 39: 0.0
George H.W. Bush 41 and Grover Cleveland 22:24: 0.0
Martin van Buren 8 and William J. Clinton 42: 0.0
James Monroe 5 and William J. Clinton 42: 0.0
Ulysses S. Grant 18 and George W. Bush 43: 0.0
Zachary Taylor 12 and Herbert Hoover 31: 0.0
John Quincy Adams 6 and Franklin D. Roosevelt 32: 0.0
sotu and Woodrow Wilson 28: 0.0
Lyndon B. Johnson 36 and George Washington 1: 0.0
John Quincy Adams 6 and Gerald R. Ford 38: 0.0
William McKinley 25 and Gerald R. Ford 38: 0.0
Richard Nixon 37 and Grover Cleveland 22:24: 0.0
John Quincy Adams 6 and Barack Obama 44: 0.0
John Quincy Adams 6 and Harry S. Truman 33: 0.0
Herbert Hoover 31 and Andrew Jackson 7: 0.0
Theodore Roosevelt 26 and Thomas Jefferson 3: 0.0
Woodrow Wilson 28 and Andrew Jackson 7: 0.0
Harry S. Truman 33 and John Adams 2: 0.0
Ronald Reagan 40 and Benjamin Harrison 23: 0.0
Ronald Reagan 40 and John Tyler 10: 0.0
Franklin Pierce 14 and Ronald Reagan 40: 0.0
Zachary Taylor 12 and George W. Bush 43: 0.0
John Adams 2 and George W. Bush 43: 0.0
John Quincy Adams 6 and Theodore Roosevelt 26: 0.0
Zachary Taylor 12 and Ronald Reagan 40: 0.0
Jimmy Carter 39 and Grover Cleveland 22:24: 0.0
Zachary Taylor 12 and John F. Kennedy 35: 0.0
Franklin Pierce 14 and Gerald R. Ford 38: 0.0
Lyndon B. Johnson 36 and James Buchanan 15: 0.0
Abraham Lincoln 16 and Gerald R. Ford 38: 0.0
James Monroe 5 and Dwight D. Eisenhower 34: 0.0
James Monroe 5 and Woodrow Wilson 28: 0.0
Lyndon B. Johnson 36 and James Monroe 5: 0.0
sotu and Benjamin Harrison 23: 0.0
James Monroe 5 and Herbert Hoover 31: 0.0
Woodrow Wilson 28 and Thomas Jefferson 3: 0.0
John Quincy Adams 6 and Warren Harding 29: 0.0
George Washington 1 and George W. Bush 43: 0.0
sotu and John F. Kennedy 35: 0.0
Martin van Buren 8 and Woodrow Wilson 28: 0.0
Martin van Buren 8 and Theodore Roosevelt 26: 0.0
Herbert Hoover 31 and John Adams 2: 0.0
Lyndon B. Johnson 36 and Abraham Lincoln 16: 0.0
George H.W. Bush 41 and Ulysses S. Grant 18: 0.0
Calvin Coolidge 30 and John Tyler 10: 0.0
Dwight D. Eisenhower 34 and Millard Fillmore 13: 0.0
Harry S. Truman 33 and James Polk 11: 0.0
James Buchanan 15 and Ronald Reagan 40: 0.0
Martin van Buren 8 and Dwight D. Eisenhower 34: 0.0
Herbert Hoover 31 and John Tyler 10: 0.0
Andrew Jackson 7 and Franklin D. Roosevelt 32: 0.0
George H.W. Bush 41 and George Washington 1: 0.0
Harry S. Truman 33 and Martin van Buren 8: 0.0
John Quincy Adams 6 and Dwight D. Eisenhower 34: 0.0
Ulysses S. Grant 18 and William J. Clinton 42: 0.0
Franklin Pierce 14 and John F. Kennedy 35: 0.0
George Washington 1 and Barack Obama 44: 0.0

In [ ]: